package com.rcn.dal.interfaces;

import java.util.List;
import org.hibernate.Session;

/**
 *
 * @author Nicolas
 */
public interface IBaseDAO {
    public <T> long save(T item);

    public <T> void update(T item);
    
    public <T> void saveOrUpdate(T item);

    public <T> void saveOrUpdate(T item,Session s);
    
    public Object getById(Class clazz, String id);

    public List getAll(Class clazz);

    public <T> void delete(T item);
}
